"""Definition of the renthousefolder content type
"""

from zope.interface import implements

from Products.Archetypes import atapi
from Products.ATContentTypes.content import folder
from Products.ATContentTypes.content import schemata

# -*- Message Factory Imported Here -*-

from my315ok.fangcan.interfaces import Irenthousefolder
from my315ok.fangcan.config import PROJECTNAME

renthousefolderSchema = folder.ATFolderSchema.copy() + atapi.Schema((

    # -*- Your Archetypes field definitions here ... -*-

))

# Set storage on fields copied from ATFolderSchema, making sure
# they work well with the python bridge properties.

renthousefolderSchema['title'].storage = atapi.AnnotationStorage()
renthousefolderSchema['description'].storage = atapi.AnnotationStorage()

schemata.finalizeATCTSchema(
    renthousefolderSchema,
    folderish=True,
    moveDiscussion=False
)


class renthousefolder(folder.ATFolder):
    """a container for containing rent house"""
    implements(Irenthousefolder)

    meta_type = "renthousefolder"
    schema = renthousefolderSchema

    title = atapi.ATFieldProperty('title')
    description = atapi.ATFieldProperty('description')

    # -*- Your ATSchema to Python Property Bridges Here ... -*-

atapi.registerType(renthousefolder, PROJECTNAME)
